import request from '@/utils/request';

// 查询生产设备列表
export function list(query) {
    return request({
        url: '/system/productEquipment/list',
        method: 'get',
        params: query
    });
}
// 查询生产设备详细
export function getDetail(id) {
    return request({
        url: '/system/productEquipment/' + id,
        method: 'get'
    });
}
// 查询生产设备编号
export function code() {
    return request({
        url: '/system/productEquipment/getCodeNo',
        method: 'get'
    });
}

// 新增生产设备
export function add(data) {
    return request({
        url: '/system/productEquipment',
        method: 'post',
        data: data
    });
}

// 修改生产设备
export function update(data) {
    return request({
        url: '/system/productEquipment',
        method: 'put',
        data: data
    });
}

// 删除生产设备
export function del(id) {
    return request({
        url: '/system/productEquipment/' + id,
        method: 'delete'
    });
}
